home *** CD-ROM | disk | FTP | other *** search
/ Scene Storm / Scene Storm - Volume 1.iso / coding / c / jpegagasrc / jpegaga / myerror.h < prev    next >
C/C++ Source or Header  |  1995-11-08  |  2KB  |  60 lines

  1. /*
  2.  * myerror.h
  3.  *
  4.  * Copyright (C) 1994, Thomas G. Lane.
  5.  * This file is part of the Independent JPEG Group's software.
  6.  * For conditions of distribution and use, see the accompanying README file.
  7.  *
  8.  * This file defines the error and message codes for the cjpeg/djpeg
  9.  * applications.  These strings are not needed as part of the JPEG library
  10.  * proper.
  11.  * Edit this file to add new codes, or to translate the message strings to
  12.  * some other language.
  13.  */
  14.  
  15.  
  16. /* To define the enum list of message codes, include this file without
  17.  * defining JMAKE_MSG_TABLE.  To create the message string table, include it
  18.  * again with JMAKE_MSG_TABLE defined (this should be done in just one module).
  19.  */
  20.  
  21.  
  22. /* modified by Günther Röhrich for use with jpegAGA */
  23.  
  24. #ifdef JMAKE_MSG_TABLE
  25.  
  26. const char * const addon_message_table[] = {
  27.  
  28. #define JMESSAGE(code,string)    string ,
  29.  
  30. #else /* not JMAKE_MSG_TABLE */
  31.  
  32. typedef enum {
  33.  
  34. #define JMESSAGE(code,string)    code ,
  35.  
  36. #endif /* JMAKE_MSG_TABLE */
  37.  
  38. JMESSAGE(JMSG_FIRSTADDONCODE=1000, NULL) /* Must be first entry! */
  39.  
  40. JMESSAGE(JERR_JPEGAGA_DISPLAY, "Could not open display")
  41. JMESSAGE(JERR_JPEGAGA_MEMORY, "Out of memory")
  42. JMESSAGE(JERR_JPEGAGA_MAPFILE, "Read error in mapfile")
  43. JMESSAGE(JERR_JPEGAGA_NOMODE, "No screen mode selected")
  44. JMESSAGE(JWRN_JPEGAGA_STOPPED, "Display stopped")
  45. JMESSAGE(JERR_JPEGAGA_OPEN, "Can't open")
  46.  
  47. #ifdef JMAKE_MSG_TABLE
  48.  
  49.   NULL
  50. };
  51.  
  52. #else /* not JMAKE_MSG_TABLE */
  53.  
  54.   JMSG_LASTADDONCODE
  55. } ADDON_MESSAGE_CODE;
  56.  
  57. #endif /* JMAKE_MSG_TABLE */
  58.  
  59. #undef JMESSAGE
  60.